package com.ecoolex.chinadutyfree.retailer.ws;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.chinadutyfree.retailer.core.manager.DirectMailGoodsProductBuyLimitManager;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProductBuyLimit;

@Service
public class DirectMailGoodsProductBuyLimitServiceImpl implements DirectMailGoodsProductBuyLimitService{

	@Autowired
	private DirectMailGoodsProductBuyLimitManager manager;
	
	@Override
	public DirectMailGoodsProductBuyLimit get(Integer id) {
		return manager.get(id);
	}
	
	@Override
	public DirectMailGoodsProductBuyLimit getByProductId(Integer directMailProductId) {
		return manager.getByProductId(directMailProductId);
	}

	@Override
	public DirectMailGoodsProductBuyLimit add(DirectMailGoodsProductBuyLimit record, String createUser){
		return manager.add(record, createUser);
	}

	@Override
	public DirectMailGoodsProductBuyLimit edit(DirectMailGoodsProductBuyLimit record, String updateUser){
		return manager.edit(record, updateUser);
	}

	@Override
	public void delete(DirectMailGoodsProductBuyLimit record, String updateUser){
		manager.delete(record, updateUser);
	}

}
